import { NodeRoot } from "../Base/NodeRoot";
import { NMNode } from "../Base/NodeGraph";
@NMNode
export class SetActive extends NodeRoot{
    public Node: any;
    public Active:boolean;
    onEnter(){
        let activeNode=this.Node;
        if(!activeNode){
            activeNode=this.ownerNode;
        }
        activeNode.active=this.Active;
        console.log("设置激活",activeNode);
    }
}